package com.hisoft.web.security.action;

import org.springframework.beans.factory.annotation.Autowired;

import com.hisoft.web.security.domain.Account;
import com.hisoft.web.security.domain.logic.ISecurityFacade;
import com.opensymphony.xwork2.ActionSupport;

public class HomeAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7915300459688597765L;
	private Account user;
	
	@Autowired
	private ISecurityFacade  securityImpl;
	
		
	public String execute() throws Exception{
		this.user = securityImpl.getAccount("Ray");
		return SUCCESS;		
	}
	
	public Account getUser(){
		return this.user;
	}
}
